package com.example.administrator.laishenggen;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity {

    private EditText username;
    private EditText password;
    private Button loginbtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();

        initEvent();
    }

    private void initView() {

        username = (EditText) findViewById(R.id.edit_one);
        password = (EditText) findViewById(R.id.edit_two);
        loginbtn = (Button) findViewById(R.id.login_btn);
    }

    private void initData() {

    }

    private void initEvent() {
        initData();
        loginbtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(MainActivity.this, WorldCup.class);
                startActivity(intent);

            }
        });
    }
}
